<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/page/share/taglib.jsp"%>
<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>入学考试审批</title>
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/common/globals.css">
     <script type="text/javascript">
    	function pass(){
    		if(window.confirm("确定？")){
    			var score = document.approvalForm.score.value;
    			if(score<=0 || score!=parseFloat(score) || score>30){
    				document.getElementById("s_testScore").innerHTML = "数值非法";
    			}else{
    				document.getElementById("s_testScore").innerHTML = "";
    				document.approvalForm.submit();
    			}
    		}
    	}
    	
    	function nopass(){
    		if(window.confirm("确定？？")){
    			document.approvalForm.agree.value = false;
    			document.approvalForm.submit();
    		}
    	}
    </script>
  </head>
  
  <body marginwidth="0" marginheight="0">
    <div id="container">
			<s:form name="approvalForm" method="post" action="/control/process/examdoApproval.do">
			    <s:hidden name="taskId"/>
			    <s:hidden name="eid"/>
				<input type="hidden" name="agree" value="true">
			  	<table id="table1">
				    <tbody><tr>
				    	<th colspan="2">入学考试审批：</th>
				    </tr>
				    <tr>
				    	<td align="center">
				    		<b>审批意见</b>
				    	</td>
				    	<td>
				    		<textarea rows="5" cols="80" name="comment"></textarea>
				    	</td>
				    </tr>
				    <tr>
				    	<td align="center">
				    		<b>得分</b>
				    	</td>
				    	<td>
				    		<input type="text" name="score" value="0" style="width: 60px">     
				    		最高分不得超过：30　　
				    		<span id="s_testScore" style="color: red"></span>
				    	</td>
				    </tr>
				    <tr> 
				      	<td colspan="2"> <div align="center"> 
				          <input type="button" value=" 通 过 " onClick="pass()">
				          <input type="button" value=" 不 通 过 " onClick="nopass()">
				          <input type="button" name="button" value=" 返 回 " onClick="javascript:history.back()">
				        </div></td>
				    </tr>
			  </tbody></table>
			</s:form>
		</div>
</body></html>